package com.huai.demo_test1.test.leecodeTest;import org.junit.Test;public class Solution {//    @Test    public  int countDigits(int num) {        int t=num;        int count=0;        while (t!=0){            if (num%(t%10)==0){                count++;            }            t/=10;        }        return count;    }    @Test    public void test() {        int i = countDigits(121);        System.out.println(i);    }}